/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.asu.web.ui.commission_total_blank;

import com.haulmont.asu.entity.CommissionTotalBlank;
import com.haulmont.cuba.gui.WindowManager;
import com.haulmont.cuba.gui.components.AbstractEditor;
import com.haulmont.cuba.gui.components.Table;
import com.haulmont.cuba.gui.components.actions.EditAction;

import javax.inject.Inject;
import java.util.Map;

/**
 * Author: Sergey42
 * Date: 01.12.13 19:44
 */
public class CommissionTotalBlankEditor extends AbstractEditor<CommissionTotalBlank> {

    @Inject
    protected Table markTable;

    @Override
    public void init(Map<String, Object> params) {
        markTable.removeAction(getAction("markTable.edit"));
        markTable.addAction(new EditAction(markTable, WindowManager.OpenType.DIALOG));
    }
}
